import React from "react";
import { Product } from "../interface";

interface ProductCategoryRowProps {
  category: Product["category"];
}
/**
 * (绿色)展示每个类别的表头
 * @props ProductCategoryRowProps
 * @returns 函数组件
 */
const ProductCategoryRow: React.FC<ProductCategoryRowProps> = ({ category }) => {
  return (
    <tr>
      <th colSpan={2}>{category}</th>
    </tr>
  );
};
export default ProductCategoryRow;
